home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3010 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: galileo.carl.org!echadez
  2. From: echadez@galileo.carl.org (Edward Chadez)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Transparent color
  5. Date: 7 Feb 1996 21:09:05 GMT
  6. Organization: CARL Corporation
  7. Message-ID: <4fb4dh$nro@hermes.cair.du.edu>
  8. References: <4f4erl$ppj@strauss.udel.edu>
  9. NNTP-Posting-Host: galileo.carl.org
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13. X-Newsreader: TIN [version 1.2 PL2]
  14.  
  15. John Pat Corigliano (jcorig@strauss.udel.edu) wrote:
  16. : I am trying to display a BitMap with color 0 being a transparent
  17. : color, but am having some difficulties :(
  18.  
  19. : I create a BitMap from an IFF, then create a 1 plane mask by
  20. : OR'ing all the bitplanes from the BitMap together.  I use the
  21. : BltMaskBitMapRastPort() function with a minterm of 0xC0.  Yet,
  22. : I do not get the desired result.  Any ideas?
  23.  
  24. Not sure if what you're describing will work.  You might try 0xE0.  Or
  25. you could scan through the original bitmap with ReadPixel( srcRP, x, y )
  26. and wherever PEN 0 wasn't used, you could WritePixel( destRP, x, y ) to
  27. build your mask.
  28.  
  29. If you have OS 3.x and you're using datatypes,  I've written some 'C' code 
  30. that builds a mask for bitmaps with transparent colors (which I finally 
  31. figured out how to do).  I can email it to you if you like.
  32.  
  33.     -Ed
  34. --
  35. What you percieve here as opinions aren't readily shared by those I work for.
  36.      Edward Chadez, Lead Senior Programmer/Analyst at CARL Corporation
  37.    When web surfing, visit Galileo's Universe at http://galileo.carl.org/
  38.    Amiga user since 1988.  Internet surfer since 1989.  Grow up, not old.
  39.